package study.bean;

public class TestClass {

    public void print(Object object){
        if(object instanceof Cat){
              Cat cat = (Cat) object;
              cat.catchMouse();
        }else if(object instanceof Student){
            Student student = (Student) object;
            student.add(10,20);
        }else if(object instanceof  Car){
             Car car = (Car) object;
            car.run();
        }
    }
}
